:root {
  --wanxiang-selected-bg: #409eff;
  --wanxiang-hover-bg: #ecf5ff;
  --wanxiang-border-color: #e6e6e6;
}

html,
body {
  padding: 0;
  margin: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #adadaba4;
  cursor: pointer;
}
::-webkit-scrollbar-track {
  background-color: #fff;
}

.wanxiang-flex-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background: #fff;
}
.wanxiang-flex {
  display: flex;
  overflow: hidden;
  flex: 1;
}
.wanxiang-header {
  height: 50px;
  line-height: 50px;
  background: #303133;
  box-sizing: border-box;
  padding: 0 10px;
  color: #fff;
}
.wanxiang-menu {
  width: 300px;
  background: #fff;
  overflow: auto;
  border-right: 1px solid var(--wanxiang-border-color);
}
.wanxiang-container {
  flex: 1;
  overflow: hidden;
}

.wanxiang-menu-item {
  cursor: pointer;
}

.wanxiang-menu-name {
  line-height: 40px;
  display: flex;
  justify-content: space-between;
  padding-right: 10px;
}
.wanxiang-menu-name:hover {
  background: var(--wanxiang-hover-bg);
}

.wanxiang-menu-current>.wanxiang-menu-name {
  background: var(--wanxiang-selected-bg);
  color: #fff;
  border-right: 1px solid var(--wanxiang-border-color);
}

.wanxiang-submenu {
  overflow: hidden;
  transition: max-height 250ms;
}

.wanxiang-colsed .wanxiang-submenu {
  max-height: 0;
}

.wanxiang-icon-arrow svg {
  transition: transform 300ms;
  transform: rotateZ(180deg);
}

.wanxiang-colsed .wanxiang-icon-arrow svg {
  transform: rotateZ(0deg);
}

.wanxiang-icon-arrow svg {
  height: 1em;
  width: 1em;
  transition: transform 300ms;
  transform-origin: center;
}
